//
//  BaseViewController.m
//  FlowLayout
//
//  Created by Fuzzie Liu on 15/10/28.
//  Copyright © 2015年 Fuzzie Liu. All rights reserved.
//

#import "BaseViewController.h"
#import "NightVersion.h"

@implementation BaseViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
    NSNotificationCenter *center = [NSNotificationCenter defaultCenter];
    [center addObserver:self selector:@selector(receiveNotification) name:@"NightVersion" object:nil];
}

// 接受通知时实现的方法
- (void)receiveNotification
{
//    [NightVersion changeColor:self];
//    [NightVersion changeColor:self.view];
}

- (void)dealloc
{
    [[NSNotificationCenter defaultCenter] removeObserver:self];
}

- (void)viewWillAppear:(BOOL)animated
{
    [self receiveNotification];
}

@end
